package com.mercury.ec.module.air.controller.admin.demandorder.vo.demandorder;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 机票需求订单新增 Request VO")
@Data
public class AirDemandOrderCreateReqVO {

    @Schema(description = "客户id 见表（basic_customer.id）", requiredMode = Schema.RequiredMode.REQUIRED, example = "26965")
    @NotNull(message = "客户id 见表（basic_customer.id）不能为空")
    private Long customerId;

    @Schema(description = "申请人id 见表（system_users.id）", requiredMode = Schema.RequiredMode.REQUIRED, example = "27903")
    @NotNull(message = "申请人id 见表（system_users.id）不能为空")
    private Long applyUserId;

    @Schema(description = "航程信息", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "航程信息不能为空")
    private String flightInfo;

    @Schema(description = "联系人")
    @Length(max = 64, message = "联系人长度不能超过64")
    private String contact;

    @Schema(description = "联系人电话")
    @Length(max = 16, message = "联系人电话长度不能超过16")
    private String contactPhone;

    @Schema(description = "备注", example = "你猜")
    @Length(max = 255, message = "备注长度不能超过255")
    private String remark;

    @Schema(description = "是否提交", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    @NotNull
    private Boolean submit;

}
